package com.atguigu.gulimall.product.mapper;

import com.atguigu.gulimall.product.entity.BaseCategory1;
import com.atguigu.gulimall.product.entity.CategoryViewEntity;
import com.atguigu.gulimall.web.vo.CategoryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author nicc
 * @description 针对表【base_category1(一级分类表)】的数据库操作Mapper
 * @createDate 2022-09-26 18:25:42
 * @Entity com.atguigu.gulimall.product.entity.BaseCategory1
 */
@Mapper
public interface BaseCategory1Mapper extends BaseMapper<BaseCategory1> {

    List<CategoryVo> getCategorysTree();

    CategoryViewEntity getCategoryView(@Param("c3Id") Long c3Id);
}